import java.io.FileReader;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;


public class Test {
	public static void main(String[] args){
		//for (int i=0; i < 100; i++)
		//System.out.println(UUID.randomUUID().toString());
		
		//System.out.println(URLDecoder.decode("http://detail.tmall.com%2fitem.htm%3fid%3d17017936629"));
		String jsFileName = "md52.js"; // 指定md5加密文件
		ScriptEngineManager manager = new ScriptEngineManager();
		ScriptEngine engine = manager.getEngineByName("javascript");

		// 读取js文件
		FileReader reader;
		try {
			reader = new FileReader(jsFileName);
			engine.eval(reader);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
}
